package com.juc.executors.executors2;

public class MyRunable implements Runnable{

	private String username;
	
	public MyRunable(String username){
		super();
		this.username = username;
	}
	@Override
	public void run() {
		
		try {
			
			System.out.println(Thread.currentThread().getName() + " username = " +username + " begin " +System.currentTimeMillis());
			Thread.sleep(2000);
			System.out.println(Thread.currentThread().getName() + " username = " +username + " end " +System.currentTimeMillis());

		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
